package com.shop.common.pojo;

import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {

    private Long id;

    private String phone;

    private String password;

    private String email;

    private String username;

    private Integer status;

    private Date createTime;

    private Date updateTime;

    private Integer creater;

    private Integer updater;

    private String nickname;

    private String pic;

    private Integer flag;

    private static final long serialVersionUID = 1L;

    public User(Long id, String phone, String password, String username) {
        this.id = id;
        this.phone = phone;
        this.password = password;
        this.username = username;
    }
}